From: Jan Djärv Date: Tue, 7 Jul 2009 08:38:44 +0000 (+0000) Subject: xterm.c (handle_one_xevent): Only call x_check_fullscreen on the X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~11631 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=79881a38806cdf81be578110c045789e5fafff2d;p=emacs.git xterm.c (handle_one_xevent): Only call x_check_fullscreen on the first MapNotify. --- diff --git a/src/ChangeLog b/src/ChangeLog index 4555bfc72bb..f4894ce7330 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-07-07 Jan Djärv + + * xterm.c (handle_one_xevent): Only call x_check_fullscreen on the + first MapNotify. + 2009-07-07 Kenichi Handa * character.h (unibyte_has_multibyte_table): Delete extern. diff --git a/src/xterm.c b/src/xterm.c index c034faaec2e..8d9a7d3cc0b 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -6207,6 +6207,11 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) if (! f->async_iconified) SET_FRAME_GARBAGED (f); + /* Check if fullscreen was specified before we where mapped the + first time, i.e. from the command line. */ + if (!f->output_data.x->has_been_visible) + x_check_fullscreen (f); + f->async_visible = 1; f->async_iconified = 0; f->output_data.x->has_been_visible = 1; @@ -6223,8 +6228,6 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit) in case this is the second frame. */ record_asynch_buffer_change (); - /* Check if fullscreen was specified before we where mapped. */ - x_check_fullscreen (f); #ifdef USE_GTK xg_frame_resized (f, -1, -1); #endif